package com.bgs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商品订单表
 * </p>
 *
 * @author Nero
 * @since 2022-05-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Commodityorder对象", description="商品订单表")
public class Commodityorder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单id")
    @TableId(value = "co_id", type = IdType.AUTO)
    private Integer coId;

    @ApiModelProperty(value = "派送方式（1是送货上门 2是门店自提）")
    private Integer deliveryMethod;

    @ApiModelProperty(value = "货物数量")
    private Integer quantity;

    @ApiModelProperty(value = "价格")
    private Double price;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "联系人")
    private String contactsName;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "配送费（没有为0）")
    private Double distributionfee;

    @ApiModelProperty(value = "合计")
    private Double total;

    @ApiModelProperty(value = "取货号（随机生成）")
    private String tan;

    @ApiModelProperty(value = "门店id")
    private Integer storeId;

    @ApiModelProperty(value = "二维码图片（存储图片路径）")
    private String qrcodeimg;

    @ApiModelProperty(value = "超时时间")
    private LocalDateTime overTime;

    @ApiModelProperty(value = "经度")
    private String coLongitude;

    @ApiModelProperty(value = "纬度")
    private String coLatitude;

    @ApiModelProperty(value = "订单状态（1是待支付 2是待取货 3是已送达 4是已评论）")
    private Integer coType;

    @ApiModelProperty(value = "骑手id")
    private Integer riderId;

    @ApiModelProperty(value = "商品id")
    private Integer commodityId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime creationTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除（y是删除 n是未删除）")
    private String isDel;

    @ApiModelProperty(value = "订单编号")
    private String number;
}
